Facebook\Tests\GraphNodes\GraphNodeFactoryTest S

Total Complexity 17
Dependencies 4
Dependents 0
Total lines 422
Lines of code 338
Logical lines of code 113
Comment lines 15
Methods 17
Properties 1

Methods 17

Method Rating Maintainability Complexity Lines of code
testAGraphEdgeWillBeCastRecursively()
S
37 1 97
testAGraphEdgeWillGenerateTheProperParentGraphEdges()
S
42 1 64
testAListFromGraphWillBeCastAsAGraphEdge()
S
49 1 35
testAGraphNodeWithARootDataKeyWillConserveRootKeys()
S
55 1 21
testAGraphNodeWithARootDataKeyWillBeCastAsAGraphNode()
S
56 1 19
testAnUnknownGraphNodeWillBeCastAsAGenericGraphNode()
S
57 1 17
testAGraphNodeWillBeCastAsAGraphNode()
S
57 1 17
setUp()
S
62 1 12
testAValidGraphNodeResponseWillNotThrow()
S
70 1 6
testASubClassMappingWillAutomaticallyInstantiateSubClass()
S
65 1 9
testValidSubClassesWillNotThrow()
S
74 1 5
testInvalidSubClassesWillThrow()
S
81 1 3
testOnlyNumericArraysAreCastableAsAGraphEdge()
S
66 1 8
testANonGraphEdgeResponseWillThrow()
S
70 1 6
testAValidGraphEdgeResponseWillNotThrow()
S
70 1 6
testANonGraphNodeResponseWillThrow()
S
70 1 6
testCastingAsASubClassObjectWillInstantiateTheSubClass()
S
68 1 7